package org.dromara.trace.domain.bo;

import org.dromara.trace.domain.TraceCodeTemplate;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 溯源码模版业务对象 trace_code_template
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TraceCodeTemplate.class, reverseConvertGenerate = false)
public class TraceCodeTemplateBo extends BaseEntity {

    /**
     * 模版ID
     */
    @NotNull(message = "模版ID不能为空", groups = { EditGroup.class })
    private Long templateId;

    /**
     * 模版名称
     */
    @NotBlank(message = "模版名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateName;

    /**
     * 模版背景图
     */
    @NotBlank(message = "模版背景图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateBgi;

    /**
     * 模版宽度(PX)
     */
    @NotNull(message = "模版宽度(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateWidth;

    /**
     * 模版高度(PX)
     */
    @NotNull(message = "模版高度(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateHeight;

    /**
     * 二维码宽度(PX)
     */
    @NotNull(message = "二维码宽度(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qrcodeWidth;

    /**
     * 二维码高度(PX)
     */
    @NotNull(message = "二维码高度(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qrcodeHeight;

    /**
     * 二维码横坐标位置(PX)
     */
    @NotNull(message = "二维码横坐标位置(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qrcodeX;

    /**
     * 二维码纵坐标位置(PX)
     */
    @NotNull(message = "二维码纵坐标位置(PX)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long qrcodeY;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态（0可用，2不可用）
     */
    @NotBlank(message = "状态（0可用，2不可用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
